Skip to content

Fix CVE-2026-26960: Upgrade tar to patch hardlink vulnerability#2318

Closed
JanPokorny wants to merge 1 commit intomainfrom
claude/fix-tar-vulnerability-cMDyi
Closed

Fix CVE-2026-26960: Upgrade tar to patch hardlink vulnerability#2318
JanPokorny wants to merge 1 commit intomainfrom
claude/fix-tar-vulnerability-cMDyi

Conversation

@JanPokorny
Copy link
Collaborator

Summary

Upgrades the tar package to version 7.5.8 to fix CVE-2026-26960 / GHSA-83g3-92jg-28cx, which addresses an arbitrary file read/write vulnerability via hardlink target escape. This dependency is transitive via mintlify → @mintlify/previewing → tar@6.1.15.

Linked Issues

Documentation

  • No Docs Needed: This is a security patch for a transitive dependency with no API or behavior changes affecting the application.

https://claude.ai/code/session_017BS2GycsLy1vkft6LFA3vS

Add pnpm workspace override to force tar >= 7.5.8 for all transitive
dependencies, addressing the arbitrary file read/write vulnerability
(GHSA-83g3-92jg-28cx) introduced via hardlink target escape through
symlink chains during tar extraction.

Affected transitive path: mintlify -> @mintlify/previewing -> tar@6.1.15

https://claude.ai/code/session_017BS2GycsLy1vkft6LFA3vS
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 6, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request implements a critical security update by upgrading a core dependency, tar, to a version that mitigates a known vulnerability. The change is primarily focused on enhancing the application's security posture by patching a transitive dependency without introducing any functional or API alterations to the main application.

Highlights

  • Security Patch for tar: Upgraded the tar package to version 7.5.8 to address CVE-2026-26960 (GHSA-83g3-92jg-28cx), which resolves an arbitrary file read/write vulnerability via hardlink target escape.
  • Transitive Dependency Update: The tar dependency is transitive, originating from mintlify through @mintlify/previewing, and the update ensures the security fix propagates correctly.
  • Dependency Lockfile and Override Updates: The pnpm-lock.yaml file was updated to reflect the new tar version and its updated sub-dependencies, and an explicit override for tar@<7.5.8 was added to pnpm-workspace.yaml.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • pnpm-lock.yaml
    • Updated @carbon/react from 1.101.0 to 1.102.0.
    • Added an override for tar@<7.5.8.
    • Introduced @isaacs/fs-minipass@4.0.1.
    • Upgraded chownr from 2.0.0 to 3.0.0.
    • Removed fs-minipass@2.1.0.
    • Removed minipass@3.3.6 and minipass@5.0.0.
    • Upgraded minizlib from 2.1.2 to 3.1.0.
    • Removed mkdirp@1.0.4.
    • Upgraded tar from 6.1.15 to 7.5.8.
    • Upgraded yallist from 4.0.0 to 5.0.0.
    • Updated dependencies for tar to reflect new versions of chownr, minipass, minizlib, and yallist, and replaced fs-minipass with @isaacs/fs-minipass.
  • pnpm-workspace.yaml
    • Added a new override entry for tar@<7.5.8 to explicitly address the CVE.
Activity
  • The author indicated that no documentation changes are needed as this is a security patch for a transitive dependency with no API or behavior changes affecting the application.
  • A Claude AI code session link was provided in the PR description.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly upgrades the tar package to version 7.5.8 to address the security vulnerability GHSA-83g3-92jg-28cx. The use of pnpm overrides is appropriate for forcing the version of a transitive dependency. I have a couple of suggestions to improve the clarity and focus of this change. First, the comment in pnpm-workspace.yaml contains an incorrect CVE number and a misleading description of the vulnerability; I've suggested a correction. Second, the pnpm-lock.yaml file includes an update to @carbon/react which seems unrelated to the tar security fix. It's a good practice to keep dependency updates in separate, focused pull requests.

'@carbon/react':
specifier: ^1.101.0
version: 1.101.0
version: 1.102.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This pull request is focused on a security upgrade for the tar package. However, it also includes an update for @carbon/react from 1.101.0 to 1.102.0. To maintain a clean and focused commit history, it's best to keep unrelated dependency updates in separate pull requests. This makes it easier to track changes and revert them if necessary. Could you please revert this specific change and address it in a separate PR?

Comment on lines +5 to +7
# Fix CVE-2026-26960 / GHSA-83g3-92jg-28cx: Arbitrary File Read/Write via Hardlink Target Escape
# Transitive via mintlify -> @mintlify/previewing -> tar@6.1.15
"tar@<7.5.8": "7.5.8"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The CVE number and vulnerability description in the comment seem incorrect. CVE-2026-26960 appears to be a typo, and as of now, GHSA-83g3-92jg-28cx does not have a CVE assigned. Also, the vulnerability description for this GHSA is "Arbitrary File Creation/Overwrite on Windows via Specially-Crafted TAR File", not related to hardlink escapes. To avoid confusion, I suggest updating the comment to accurately reflect the vulnerability being addressed.

  # Fix GHSA-83g3-92jg-28cx: Arbitrary File Creation/Overwrite on Windows via Specially-Crafted TAR File
  # Transitive via mintlify -> @mintlify/previewing -> tar@6.1.15
  "tar@<7.5.8": "7.5.8"

@JanPokorny JanPokorny closed this Mar 9, 2026
@JanPokorny JanPokorny deleted the claude/fix-tar-vulnerability-cMDyi branch March 9, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants